@model IEnumerable<lucienneCRMApp.Models.Bookings>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            NameSurname
        </th>
        <th>
            Email
        </th>
        <th>
            MobileNum
        </th>
        <th>
            BookDate
        </th>
        <th>
            PackageNum
        </th>
        <th>
            NumOfPeople
        </th>
        <th>
            Queries
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.BookingId }) |
            @Html.ActionLink("Details", "Details", new { id=item.BookingId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.BookingId })
        </td>
        <td>
			@item.NameSurname
        </td>
        <td>
			@item.Email
        </td>
        <td>
			@item.MobileNum
        </td>
        <td>
			@item.BookDate
        </td>
        <td>
			@item.PackageNum
        </td>
        <td>
			@item.NumOfPeople
        </td>
        <td>
			@item.Queries
        </td>
    </tr>
}

</table>


